#!/bin/bash

echo "修改configure.ac中的AC_PREREQ(x.xx)："
sed -n 's/AC_PREREQ(\([0-9]\+\.[0-9]\+\))/AC_PREREQ(\1) ==> AC_PREREQ(2.72)/p' configure.ac && sed -i 's/AC_PREREQ([0-9]\+\.[0-9]\+)/AC_PREREQ(2.72)/' configure.ac

echo

echo "导入gnulib的fsync和getline："
../gnulib/gnulib-tool --import fsync getline
